package transactionimplementation

import (
	"salary/abstracttransactions"
	"salary/model"
	"salary/modelimplementation"
)

/*
 * 更改雇员类别：销售情况
 */

type ChangeCommissionTransaction struct {
	abstracttransactions.ChangeClassificationTransaction
	salary         		float64
	commissionRate 		float64
}

func (cct *ChangeCommissionTransaction) GetClassification() model.PaymentClassification {
	return modelimplementation.NewCommissionClassification(cct.salary, cct.commissionRate)
}

func (cct *ChangeCommissionTransaction) GetSchedule() model.PaymentSchedule {
	return &modelimplementation.BiweeklySchedule{}
}
